// 组件全局注册
/*
1：main.ts导入注册
  导入组件
  app=createApp(App)
  app.component(组件名,导入的组件)
2:app.use()====以前的Vue.use()
app.use({
    install(app,options){
      app.component(组件名,导入的组件)  
    }
},options实参)

*/
import { App } from 'vue'
import XtxSkeleton from './skeleton/index.vue'
import XtxCarousel from './carousel/index.vue'
import XtxMore from './more/index.vue'
import XtxBread from './bread/index.vue'
import XtxBreadItem from './bread/breadItem.vue'
import XtxCity from './city/index.vue'
export default {
  install (app: App) {
    app.component(XtxSkeleton.name, XtxSkeleton)
    app.component(XtxCarousel.name, XtxCarousel)
    app.component(XtxMore.name, XtxMore)
    app.component(XtxBread.name, XtxBread)
    app.component(XtxBreadItem.name, XtxBreadItem)
    app.component(XtxCity.name, XtxCity)
  }
}
